package com.demon.framework.common.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Demon-HY
 * @description 基础查询类
 * @date 2020/7/24 13:11
 */
@Data
public class BaseQuery {

    @ApiModelProperty(value = "查询游标,默认1", example = "1")
    private Integer offset = 0;

    @ApiModelProperty(value = "查询页码,默认1", example = "1")
    private Integer pageNo = 1;

    @ApiModelProperty(value = "查询条数,默认10,最大50", example = "10")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "排序字段:默认不排序")
    private String orderBy;

    @ApiModelProperty(value = "排序顺序: ASC[升序]/DESC[降序,默认]))")
    private String sortKey;
}
